import service from '@/utils/request'

export const useClueSourceApi = (id: Number) => {
	return service.get('/sys/cluesource/' + id)
}

export const useClueSourceSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/cluesource', dataForm)
	} else {
		return service.post('/sys/cluesource/save', dataForm)
	}
}
export const useClueSourceFileApi = (dataForm: any) => {
	return service.post('/sys/cluesource/savefile', dataForm)
}
export const useClueSourceListApi = (dataForm: any) => {
	return service.post('/sys/cluesource/list', dataForm)
}
